Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(logger, wrapper): support csv file and velocity tasks #131

Merged
merged 5 commits into from
Mar 6, 2023

Conversation

Gaiejj
Copy link
Member

@Gaiejj Gaiejj commented Mar 5, 2023

Description

fix(logger, wrapper): support csv file and velocity tasks

Types of changes

What types of changes does your code introduce? Put an x in all the boxes that apply:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds core functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (update in the documentation)

Checklist

Go over all the following points, and put an x in all the boxes that apply.
If you are unsure about any of these, don't hesitate to ask. We are here to help!

  • [ x I have read the CONTRIBUTION guide. (required)
  • My change requires a change to the documentation.
  • I have updated the tests accordingly. (required for a bug fix or a new feature)
  • I have updated the documentation accordingly.
  • I have reformatted the code using make format. (required)
  • I have checked the code using make lint. (required)
  • I have ensured make test pass. (required)

@Gaiejj Gaiejj requested review from zmsn-2077 and friedmainfunction and removed request for zmsn-2077 March 5, 2023 17:19
Copy link
Collaborator

@friedmainfunction friedmainfunction left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

print('project', project, 'name', name)
wandb.init(project=project, name=name, dir=self._log_dir, config=config)
project: str = self._config.get('wandb_project', 'omnisafe')
name: str = self._config.get('wandb_name', f'{exp_name}/{relpath}')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix

Copy link
Member

@zmsn-2077 zmsn-2077 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

Copy link
Collaborator

@friedmainfunction friedmainfunction left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@@ -142,12 +144,11 @@ def __init__( # pylint: disable=too-many-arguments,too-many-locals

if self._use_tensorboard and self._maste_proc:
self._tensorboard_writer = SummaryWriter(log_dir=os.path.join(self._log_dir, 'tb'))

if self._use_wandb and self._maste_proc:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix

Copy link
Member

@zmsn-2077 zmsn-2077 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

Copy link
Collaborator

@friedmainfunction friedmainfunction left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@Gaiejj Gaiejj merged commit 223040a into PKU-Alignment:dev Mar 6, 2023
@Gaiejj Gaiejj deleted the dev-fix branch March 6, 2023 10:22
zmsn-2077 pushed a commit to zmsn-2077/omnisafe_zmsn that referenced this pull request Mar 14, 2023
zmsn-2077 pushed a commit to zmsn-2077/omnisafe_zmsn that referenced this pull request Mar 14, 2023
zmsn-2077 pushed a commit to zmsn-2077/omnisafe_zmsn that referenced this pull request Mar 14, 2023
zmsn-2077 added a commit that referenced this pull request Mar 18, 2023
Co-authored-by: borong <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: ruiyang sun <[email protected]>
Co-authored-by: zmsn-2077 <[email protected]>
Co-authored-by: friedmainfunction <[email protected]>
Co-authored-by: Gaiejj <[email protected]>
Co-authored-by: zmsn-2077 <[email protected]>
Co-authored-by: Ruiyang Sun <[email protected]>
Co-authored-by: Jiayi Zhou <[email protected]>
Co-authored-by: 1Asan <[email protected]>
fix(algo): fix no return in algo_wrapper::learn (#122)
fix(logger, wrapper): support csv file and velocity tasks (#131)
fix typo. (#134)
fix(ppo): fix entropy loss (#135)
fix bugs (#136)
fix: support new config for exp_grid (#142)
fix(rollout, exp_grid): fix logdir path conflict (#145)
fix(on-policy): fix the second order algorithms performance (#147)
zmsn-2077 added a commit that referenced this pull request Mar 19, 2023
Co-authored-by: borong <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: ruiyang sun <[email protected]>
Co-authored-by: zmsn-2077 <[email protected]>
Co-authored-by: friedmainfunction <[email protected]>
Co-authored-by: Gaiejj <[email protected]>
Co-authored-by: zmsn-2077 <[email protected]>
Co-authored-by: Ruiyang Sun <[email protected]>
Co-authored-by: Jiayi Zhou <[email protected]>
Co-authored-by: 1Asan <[email protected]>
fix(algo): fix no return in algo_wrapper::learn (#122)
fix(logger, wrapper): support csv file and velocity tasks (#131)
fix typo. (#134)
fix(ppo): fix entropy loss (#135)
fix bugs (#136)
fix: support new config for exp_grid (#142)
fix(rollout, exp_grid): fix logdir path conflict (#145)
fix(on-policy): fix the second order algorithms performance (#147)
zmsn-2077 added a commit that referenced this pull request Mar 26, 2023
Co-authored-by: borong <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: ruiyang sun <[email protected]>
Co-authored-by: zmsn-2077 <[email protected]>
Co-authored-by: friedmainfunction <[email protected]>
Co-authored-by: Gaiejj <[email protected]>
Co-authored-by: zmsn-2077 <[email protected]>
Co-authored-by: Ruiyang Sun <[email protected]>
Co-authored-by: Jiayi Zhou <[email protected]>
Co-authored-by: 1Asan <[email protected]>
fix(algo): fix no return in algo_wrapper::learn (#122)
fix(logger, wrapper): support csv file and velocity tasks (#131)
fix typo. (#134)
fix(ppo): fix entropy loss (#135)
fix bugs (#136)
fix: support new config for exp_grid (#142)
fix(rollout, exp_grid): fix logdir path conflict (#145)
fix(on-policy): fix the second order algorithms performance (#147)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants